home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d7 / laser4up.arc / LASER4UP.DOC < prev    next >
Text File  |  1989-03-28  |  7KB  |  145 lines

  1.  
  2. LASER4UP.COM
  3. Command
  4.  
  5. Original LASERLST program by
  6. Michael Holmes and Bob Flanders
  7. 1989 No. 7 (Utilities)
  8.  
  9. LASER4UP created from modified LASERLST code by
  10. Bob White 3/28/89
  11. CID 71121,2333
  12.  
  13. Purpose:    Formats text files so that four pages from the file may be
  14. printed on a single landscape 8.5x11-inch page on a HP LaserJet or
  15. compatible printer.  The program creates a disk file containing the text
  16. to be printed on the back sides of the page.  The front pages must be
  17. sorted into original order, reinserted into the paper tray upside down,
  18. and then the disk file is copied to the printer.
  19.  
  20.  
  21. Format:    [d:][path]LASER4UP infile [outfile] [/Tn]
  22.     
  23. Remarks:    The infile parameter designates the text file(s) to be
  24. printed.  DOS "wildcards" (* and ?) can be used to designate multiple
  25. files, and a drive and path may also be included as part of infile.
  26.  
  27.     By default, LASER4UP sends its output to the standard DOS printing
  28. device, which is normally LPT1:.  The optional outfile parameter can be
  29. used to direct the output either to another DOS device (e.g., LPT2:), or
  30. to a disk file instead.  The optional /Tn switch causes each tab character
  31. (ASCII 9) in the infile to be replaced in the outfile with n spaces.  The
  32. default value of n is 8; other values up to 16 may be used.
  33.  
  34.     The outfile produced by LASER4UP contains the requisite formatting
  35. and printing Escape sequences used by the HP LaserJet series printers.
  36. The infile is printed in landscape mode with four 66-line x 81-character
  37. pages on each physical page.  Files suitable for processing by LASER4UP
  38. should be ASCII files that do not contain Escape sequences of their own
  39. and that do not require any specific word processor's formatting codes.
  40. Underlining produced by a backspace and character overstrike is supported,
  41. however. LASER4UP may be used with files whose line lengths exceed 81
  42. characters if it is understood that lines will be wrapped automatically at
  43. their 82nd character and that no provision is made for word wrap.
  44. LASER4UP is especially suitable for printing program listings, readme
  45. files, and rough drafts of text to be edited.
  46.  
  47. LASER4UP does not differ from LASERLST in its basic operation.  LASER4UP
  48. also supports tab expansion and re-directing output to disk just as
  49. described above.  The difference comes in what is in each file.  LASER4UP
  50. always creates a file in the current directory called "LASER4UP.TXT".
  51. This contains all the codes and output to be printed on the back sides of
  52. each page.  As I said, this file is ALWAYS created.  If you redirect the
  53. output from the (default) printer to a disk file of your own naming, it
  54. will just contain the codes and text to appear on the front sides of the
  55. page.  For example, the output from a file will be handled as follows:
  56.  
  57.      Physical Paper Page          Printer or File       LASER4UP.TXT
  58.      -------------------          ---------------       ------------
  59.  
  60.               1                         1, 2                 3, 4
  61.               2                         5, 6                 7, 8
  62.               3                         9, 10               11, 12
  63.               4                        13, 14               15, 16
  64.              etc.
  65.  
  66. Assuming you didn't redirect the output to a file, your LaserJet would
  67. start printing and print pages 1, 2, 5, 6, 9, 10, 13, 14, and so on, to
  68. the end of the file.  You would then need to remove the paper from the
  69. output tray and resort it so that the page containing pages 1 & 2 is on
  70. top, followed by 5 & 6, and so on.  Put these pages back in the paper tray
  71. with the UNPRINTED side up.  Once the tray is back in the printer, use the
  72. following DOS command to print pages 3, 4, 7, 8, etc.:
  73.  
  74.     COPY LASER4UP.TXT PRN
  75.  
  76. Replace PRN as appropriate if you've redirected your LaserJet to some
  77. other device.  The printer should start printing and print pages 3, 4, 7,
  78. 8, 11, 12, etc. on the backs of the previously printed pages.  Voila!
  79. You've done it!  I suppose it takes a bit of getting used to, but it sure
  80. does cut down on the paper you use to print documentation or program listings!
  81.  
  82. Note: The program DOES maintain track of where it is and will output
  83. formfeeds as appropriate to keep multiple file listings on the right
  84. pages.  This allows you to use wild cards and still get your files printed
  85. correctly.  Of course, I make no guarantees if you don't get the paper
  86. sorted correctly - there's only so much I can do!  Try it a couple of
  87. times with some small files - it does work!
  88.  
  89.  
  90.  
  91. CAVEAT EMPTOR
  92. -------------
  93. The above is Latin for "Let the buyer beware."  Keep in mind the paper
  94. manipulation would be difficult if the LaserJet is networked and you can't
  95. control when anyone else is sending output to it.  You may have to save
  96. print for a time when you can be relatively certain of having the printer
  97. to yourself.  If the LaserJet is dedicated to your PC, you don't have to
  98. worry about this.
  99.  
  100. Remember to delete LASER4UP.TXT after you're through with it.  I recommend
  101. a batch file similar to:
  102.  
  103.      Echo Off
  104.      LASER4UP %1 %2 %3
  105.      ECHO:
  106.      ECHO Sort the output, then press ENTER to print the back sides or
  107.      ECHO press CTRL-C to cancel.
  108.      ECHO:
  109.      PAUSE 
  110.      COPY LASER4UP.TXT PRN > NUL
  111.      ECHO:
  112.      ECHO Delete LASER4UP.TXT?  Any key deletes it, CTRL-C keeps it.
  113.      ECHO:
  114.      PAUSE
  115.      DEL LASER4UP.TXT > NUL
  116.  
  117. It's not pretty, but it would keep your hard disk from getting cluttered
  118. with copies of LASER4UP.TXT.  They can get large, as there's lots of stuff
  119. in them!  Again, the above might have to be modified if you've got your
  120. LaserJet connected as some other device.
  121.  
  122. I suppose you'd have to re-print everything if the printer jammed, but
  123. you'd probably have to do that, anyway.  With LASER4UP, you're using less
  124. paper to start out with, so if it jams and you have to re-do it, you're no
  125. worse off than if you'd used LASERLST to begin with.  (If the printer jams
  126. while LASERLST is printing, you'll still probably have to start over,
  127. anyway.)  I've only had my LaserJet II jam a couple of times in the two
  128. years I've been using it, so jams aren't going to be a big problem, unless
  129. you bend the paper before you insert it.
  130.  
  131. An alternative approach to producing the same results as what I've done by
  132. creating a disk file would be to have modified the program to have sent
  133. half the output to the NUL device - i.e., thrown it away.  That would have
  134. meant adding a switch to the program to tell it which half to send to the
  135. printer and which half to throw away.  It would have had the advantage of
  136. not creating the disk file, but you would have had to run through the
  137. entire input file(s) twice to get everything.  It would have been time
  138. consuming on slower PCs.  I figured if you had a text file that large, you
  139. probably had a hard disk anyway, and if it was so full as to not have room
  140. for another copy of the input files, you had other problems.  If you don't
  141. have a hard disk, I recommend the upgrade!
  142.  
  143. Comments or suggestions are welcome.  Contact me through CompuServe ID
  144. 71121,2333 or Exec-PC (414) 964-5160, mail to Bob White.
  145.